package com.tianji.learning.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 笔记记录表
 * </p>
 *
 * @author hrz
 * @since 2025-09-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("note")
@ApiModel(value="Note对象", description="笔记记录表")
public class Note implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "笔记id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "笔记内容")
    private String cnotent;

    @ApiModelProperty(value = "对应课程的id")
    private Long courseId;

    @ApiModelProperty(value = "对应章的id")
    private Long chapterId;

    @ApiModelProperty(value = "对应小节的id")
    private Long sectionId;

    @ApiModelProperty(value = "笔记作者id")
    private Long authorId;

    @ApiModelProperty(value = "保存笔记时的视频时间点,默认值为0")
    private Integer noteMoment;

    @ApiModelProperty(value = "是否私密笔记，默认false")
    private Boolean isPrivate;

    @ApiModelProperty(value = "是否被隐藏，默认false")
    private Boolean hidden;

    @ApiModelProperty(value = "被引用次数,默认0")
    private Integer usedTimes;

    @ApiModelProperty(value = "笔记创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间（最近一次编辑时间）")
    private LocalDateTime updateTime;

    private Boolean isGathered;

    private Long gatheredId;


}
